const mongoose = require('../config/db/mongo');
const moment = require('moment');
const Schema = mongoose.Schema;
const schemaOptions = {
    versionKey: false
}
/**
 *
 * 
 * 
 *
 */
 //会员权益，兑换规则等
const rules = new Schema({

    
    detail : [], // {type:'text',content:'abcdefg'},{type:'img',content:'cdn link'}
    isDelete : Number,


}, schemaOptions);

// methods ====================== 提高数据库检索速度 按顺序

// create the model for users and expose it to our app
module.exports = mongoose.model('rules', rules, 'rules');
